﻿#region File Header
/***********************************************************************
 * Copyright © 2013 Beals Software
 * All Rights Reserved
************************************************************************
Author: Donald Beals
Date: February 4th, 2013
Description: TODO: Write a description of this file here.
****************************** Change Log ******************************
02.04.13 - Created initial file. (dbeals)
***********************************************************************/
#endregion

#region Using Statements

#endregion

namespace GameJolt.Requests
{
	/// <summary>
	/// 
	/// </summary>
	internal static class SessionRequestFactory
	{
		public static StringRequest CreateOpenRequest(string gameID, string privateKey, string username, string userToken)
		{
			return new StringRequest(gameID, privateKey, Constants.SessionUrls.OpenUrl, RequestParameter.CreateUsername(username), RequestParameter.CreateUserToken(userToken));
		}

		public static StringRequest CreatePingRequest(string gameID, string privateKey, string username, string userToken, SessionStatus status)
		{
			return new StringRequest(gameID, privateKey, Constants.SessionUrls.PingUrl, RequestParameter.CreateUsername(username), RequestParameter.CreateUserToken(userToken), RequestParameter.CreateStatus(status));
		}

		public static StringRequest CreateCloseRequest(string gameID, string privateKey, string username, string userToken)
		{
			return new StringRequest(gameID, privateKey, Constants.SessionUrls.CloseUrl, RequestParameter.CreateUsername(username), RequestParameter.CreateUserToken(userToken));
		}
	}
}
